import {get} from '../../utils/request.js'
const state = {
logs:[],
total:0
}

const actions = {
    findAllLog(context,list){
    get('/baseLog/pageQuery',list).then(res=>{
        // console.log(res.data.list);
       let response = res.data.list
       let total = res.data.total
       context.commit('SET_LOG',response)
       context.commit('SET_TOTAL',total)
    })
}
}

const mutations = {
    SET_LOG(state,response){
      state.logs = response
    },
    SET_TOTAL(state,total){
     state.total = total
    }
}



export default {
    namespaced:true,
    state,
    actions,
    mutations
}